home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6505 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP: Illegal Pointer Arithmetic
  5. Date: Sun, 25 Feb 1996 13:59:14 GMT
  6. Organization: Netcom
  7. Message-ID: <31306a18.309961701@nntp.ix.netcom.com>
  8. References: <4gj0ug$730@news.one.net> <danpop.825121139@rscernix>
  9. NNTP-Posting-Host: ix-dc6-23.ix.netcom.com
  10. X-NETCOM-Date: Sun Feb 25  5:59:03 AM PST 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. danpop@mail.cern.ch (Dan Pop) wrote:
  14.  
  15. > In <4gj0ug$730@news.one.net> Oren Levin <oren@one.net> writes:
  16. > >        while (! feof (fin))
  17. >                 ^^^^^^^^^^^^^^^^^^^^     
  18. > Are there any books teaching this idiocy or is it only Pascal-induced
  19. > brain damage?  (See the FAQ.)
  20.  
  21. Not quite that, but Shildt's Annotated ANSI C Standard says
  22.  
  23.     The following fragment illustrates how files are commonly 
  24.     read:
  25.  
  26.         do {
  27.           ch = fgetc(fp);
  28.           /* ... */
  29.         } while (!feof(fp));
  30.  
  31. Come on Dan.  You're slipping.  Surely you could have guessed who
  32. teaches this idiocy.
  33.  
  34.  
  35. Michael M Rubenstein
  36.